import {Vector2} from "./Direction2D";

let LengthOfVector2D = (dir: Vector2) => {
    let [dX, dY] = dir;
    return Math.sqrt(dX ** 2 + dY ** 2);
}

export {LengthOfVector2D};